<?php
/* @var $this ContactController */
/* @var $model Contact */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'contact_id'); ?>
		<?php 
				if($model->isNewRecord){
					echo $form->textField($model,'contact_id',array('size'=>20,'maxlength'=>20));
				}
				else{
					echo $form->textField($model,'contact_id',array('size'=>20,'maxlength'=>20, 'disabled' => 'disabled')); 
				}
		?>
		<?php echo $form->error($model,'contact_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ip_address'); ?>
		<?php
			if($model->isNewRecord){ 
				echo $form->textField($model,'ip_address',array('size'=>45,'maxlength'=>45));
			}
			else{
				echo $form->textField($model,'ip_address',array('size'=>45,'maxlength'=>45, 'disabled' => 'disabled'));
			}
		?>
		<?php echo $form->error($model,'ip_address'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'activity_timestamp'); ?>
		<?php 
			if($model->isNewRecord){
				echo $form->textField($model,'activity_timestamp');
			}
			else{
				echo $form->textField($model,'activity_timestamp',array('disabled' => 'disabled'));
			}
		?>
		<?php echo $form->error($model,'activity_timestamp'); ?>
	</div>

<!-- 	<div class="row"> -->
		<?php //echo $form->labelEx($model,'client_id'); ?>
		<?php //echo $form->textField($model,'client_id',array('size'=>20,'maxlength'=>20)); ?>
		<?php //echo $form->error($model,'client_id'); ?>
<!-- 	</div> -->
	<div class="clear-fix"></div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->